﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true"
    CodeBehind="Piece.aspx.cs" Inherits="Accounting.Piece" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="MainBaseCss">
        <div class="MainLeft">
            <asp:Repeater ID="NavSubLeft" runat="server" OnItemCommand="NavSubLeft_ItemCommand">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server">
                        <div class="MainLeftDivCss">
                            <img class="MainLeftImgLeft" src="../images/show2.png" alt="" />
                            <asp:Label ID="lblsubNavName" CssClass="lblsubNavNameCss" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                            <asp:Label ID="lblSubNavId" CssClass="lblsubNavNameCss" Visible="false" runat="server"
                                Text='<%#Eval("Id") %>'></asp:Label>
                        </div>
                    </asp:LinkButton>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div class="MainRight">
            <%--<div class="MainRightTop">
                <a href="Index.aspx">首页</a>&nbsp;&nbsp;·&nbsp;&nbsp;
                <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">
                    <asp:Label ID="lblSiteMap" runat="server" Text=""></asp:Label>
                </asp:LinkButton>
                <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click">
                    &nbsp;&nbsp;·&nbsp;&nbsp;<asp:Label ID="lblSubSiteMap" runat="server" Text=""></asp:Label>
                </asp:LinkButton>
            </div>--%>
            <div id="ContentType1" runat="server" visible="false" class="MainRightMid">
                <%--常规内容条目--%>
                <asp:Repeater ID="RpPieceContent" runat="server" OnItemDataBound="RpPieceContent_ItemDataBound">
                    <ItemTemplate>

                        <div style="margin-top: 20px;">
                            <asp:Label CssClass="h3" ID="lblSubNavShowName2" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                            <div class="Right_HrDiv">
                                <hr class="Right_Hr" />
                            </div>
                            <div class="MainRightMidSingleCss">
                                <asp:Repeater ID="RpPieceContentList" runat="server">
                                    <ItemTemplate>
                                        <div class="DataTitleMainPagesCss">
                                            <img src="images/blackblock.png" alt="" />
                                            &nbsp;&nbsp;&nbsp; <a href='./Piece.aspx?type=6&Nav=<%#Eval("NavId") %>&Id=<%#Eval("Id") %>&Web='>
                                                <%#Eval("Title")%></a><br />
                                        </div>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div id="ContentType2" runat="server" visible="false" class="MainRightMid">
                <%--专业建设内容--%>
                <asp:Repeater ID="RpPieceContent2" runat="server">
                    <ItemTemplate>
                        <span style="visibility: hidden;">
                            <%#Eval("Id") %></span>
                        <asp:Label CssClass="h3" ID="lblSubNavShowName2" runat="server" Text='<%#Eval("Title") %>'></asp:Label>
                        <div class="Right_HrDiv">
                            <asp:Label ID="Label2" runat="server" Text='编辑：'><%#Eval("Author") %></asp:Label>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="Label3" runat="server" Text="浏览："><%#Eval("Number") %></asp:Label>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="Label4" runat="server" Text="时间："><%#Eval("DateTime") %></asp:Label>
                        </div>
                        <div class="MainRightMidSingleCss">
                            <div class="Datashow">
                                <div class="ContentCss" style="min-height: 300px">
                                    <%#Eval("_Content")%>
                                </div>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
                <div id="majorDivNP" runat="server">
                    <p id="P1" runat="server">上一篇：</p>
                    <p id="P2" runat="server">下一篇：</p>
                </div>
            </div>
            <div id="ContentType3" runat="server" visible="false" class="MainRightMid">
                <%--通知公告条目--%>
                <asp:Label CssClass="h3" ID="lblSubNavShowName2" runat="server" Text="通知公告"></asp:Label>
                <div class="Right_HrDiv">
                    <hr class="Right_Hr" />
                </div>
                <div style="float: left; width: 100%;">
                    <asp:GridView ID="GVNotic" runat="server" AutoGenerateColumns="False" ShowHeader="False"
                        OnPageIndexChanging="GVNotic_PageIndexChanging" OnRowDataBound="GVNotic_RowDataBound"
                        AllowPaging="True">
                        <Columns>
                            <asp:TemplateField HeaderText="标题">
                                <ItemTemplate>
                                    <div class="DataTitleCss">
                                        <a href='Piece.aspx?type=5&Nav=11&Id=<%#Eval("Id") %>&Web='>
                                            <img src="../images/blackblock.png" alt="" />
                                            <%#Eval("Title")%>
                                        </a>
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="发布日期">
                                <ItemTemplate>
                                    <div class="DataTimeCss">
                                        【<%#Eval("DateTime")%>】
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>
                            <ul class="PagerTemplateTable">
                                <li>
                                    <asp:LinkButton ID="linkButton8" CssClass="lbl" runat="server" CommandArgument="first"
                                        CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex != 0 %>">首&nbsp;&nbsp;&nbsp;&nbsp;页</asp:LinkButton>

                                </li>
                                <li>丨</li>
                                <li>
                                    <asp:LinkButton ID="linkButton7" CssClass="lbl" runat="server" CommandArgument="Prev"
                                        CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=0 %>">上一页</asp:LinkButton>

                                </li>
                                <li>丨</li>
                                <li>
                                    <span>当前</span>
                                    <asp:Label ID="label2" runat="server" CssClass="number"><%#((GridView)Container.NamingContainer).PageIndex+1 %></asp:Label>
                                    <span>页</span>
                                </li>
                                <li>
                                    <span>共</span>
                                    <asp:Label ID="label1" runat="server" CssClass="number"><%#((GridView)Container.NamingContainer).PageCount %></asp:Label>
                                    <span>页</span>
                                </li>
                                <li>丨</li>
                                <li>
                                    <asp:LinkButton ID="linkButton6" CssClass="lbl" runat="server" CommandArgument="Next"
                                        CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=((GridView)Container.NamingContainer).PageCount-1 %>">下一页</asp:LinkButton>
                                </li>
                                <li>丨</li>
                                <li>
                                    <asp:LinkButton ID="linkButton3" CssClass="lbl" runat="server" CommandArgument="last"
                                        CommandName="Page" Enabled="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">页&nbsp;&nbsp;&nbsp;尾</asp:LinkButton>
                                </li>
                            </ul>
                        </PagerTemplate>
                    </asp:GridView>
                </div>
            </div>
            <div id="ContentType4" runat="server" visible="false" class="MainRightMid">
                <%--所有条目列表--%>
                <asp:Label CssClass="h3" ID="lblSubNavShowName1" runat="server" Text="Label"></asp:Label>
                <div class="Right_HrDiv">
                    <hr class="Right_Hr" />
                </div>
                <asp:GridView ID="GVDepartment" runat="server" AutoGenerateColumns="False" ShowHeader="False"
                    PageSize="10" OnPageIndexChanging="GVDepartment_PageIndexChanging" OnRowDataBound="GVDepartment_RowDataBound"
                    AllowPaging="True">
                    <Columns>
                        <asp:TemplateField HeaderText="标题">
                            <ItemTemplate>
                                <div class="DataTitleCss">
                                    <a href='./Piece.aspx?type=6&Nav=<%#Eval("NavId") %>&Id=<%#Eval("Id") %>&Web='>
                                        <img src="../images/blackblock.png" alt="" />
                                        <%#Eval("Title")%>
                                    </a>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发布日期">
                            <ItemTemplate>
                                <div class="DataTimeCss">
                                    【<%#Eval("DateTime")%>】
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle Width="550px" />
                    <PagerTemplate>
                        <ul class="PagerTemplateTable">
                            <li>
                                <asp:LinkButton ID="linkButton8" runat="server" CommandArgument="first"
                                    CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex != 0 %>">首&nbsp;&nbsp;&nbsp;&nbsp;页</asp:LinkButton>

                            </li>
                            <li>丨</li>
                            <li>
                                <asp:LinkButton ID="linkButton7" runat="server" CommandArgument="Prev"
                                    CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=0 %>">上一页</asp:LinkButton>

                            </li>
                            <li>丨</li>
                            <li>
                                <span>当前</span>
                                <asp:Label ID="label2" runat="server" CssClass="number" Font-Size="Small"><%#((GridView)Container.NamingContainer).PageIndex+1 %></asp:Label>
                                <span>页</span>
                            </li>
                            <li>
                                <span>共</span>
                                <asp:Label ID="label1" runat="server" CssClass="number" Font-Size="Small"><%#((GridView)Container.NamingContainer).PageCount %></asp:Label>
                                <span>页</span>
                            </li>
                            <li>丨</li>
                            <li>
                                <asp:LinkButton ID="linkButton6" runat="server" CommandArgument="Next"
                                    CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=((GridView)Container.NamingContainer).PageCount-1 %>">下一页</asp:LinkButton>
                            </li>
                            <li>丨</li>
                            <li>
                                <asp:LinkButton ID="linkButton3" runat="server" CommandArgument="last"
                                    CommandName="Page" Enabled="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">页&nbsp;&nbsp;&nbsp;尾</asp:LinkButton>
                            </li>
                        </ul>
                    </PagerTemplate>
                </asp:GridView>
            </div>
            <div id="ContentType5" runat="server" visible="false" class="MainRightMid" style="margin-top: 20px;">
                <%--内容块--%>
                <asp:Repeater ID="RpPieceContent5" runat="server" OnItemCommand="RpPieceContent5_ItemCommand">
                    <ItemTemplate>
                        <asp:Label CssClass="h3" ID="Label1" runat="server" Text=""><%#Eval("Title")%></asp:Label>
                        <div class="Right_HrDiv">
                            <asp:Label ID="Label2" runat="server" Text='编辑：'><%#Eval("Author") %></asp:Label>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="Label3" runat="server" Text="浏览："><%#Eval("Number") %></asp:Label>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="Label4" runat="server" Text="时间："><%#Eval("DateTime") %></asp:Label>
                        </div>
                        <div id="Div1" runat="server" class="Datashow">
                            <div class="ContentCss">
                                <%#Eval("_Content")%>
                            </div>
                            <br />
                            <div class="Conetnt_last">
                                <asp:Label ID="lblFileName" runat="server" Text='附件：'>
                                    <asp:LinkButton ID="lbtnFileName" runat="server" Text='<%#Eval("FileName") %>'></asp:LinkButton></asp:Label>
                                <asp:Label ID="lblFileRoute" runat="server" Visible="false" Text='<%#Eval("FileRoute") %>'></asp:Label>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
                <div style="font-size: 90%;">
                    <p id="Previous" runat="server">上一篇：</p>
                    <p id="Next" runat="server">下一篇：</p>
                </div>
            </div>
        </div>
    </div>
    <div class="footer">
    </div>
</asp:Content>
